home *** CD-ROM | disk | FTP | other *** search
- Path: varian.com!usenet
- From: Michael.Diack@ukos.varian.com (Mike Diack)
- Newsgroups: comp.lang.c
- Subject: Re: calling a DOS TSR from C (to Dmpeter and others!!!!!)
- Date: 22 Feb 1996 14:52:22 GMT
- Organization: Varian Oncology Systems (Crawley)
- Message-ID: <4ghvv6$9i4@falcon.varian.com>
- Reply-To: Michael.Diack@ukos.varian.com
- NNTP-Posting-Host: duck.ukos.varian.com
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- To dmpeter and other's
-
- I know it's not an entirely relevant question to this group, but:
-
- The "system" function call under all DOS C compilers I've seen is only
- designed to handle transient (non TSR) programs, ie. that load,
- claim memory, use memory, release the memory and terminate, in order
- to avoid disrupting the memory map of the program making the system
- call to run the TSR/program in question.
-
- Thus since a TSR doesn't leave memory in the same way as it was when
- the TSR was invoked (cos it's staying resident), you shouldn't be surprised
- when your mem map goes awry after invoking such an application.
- (the tsr is holding onto it's memory, and anyother RAM used to change the
- active program context, which for DOS, is probably most of the RAM used
- by command.com, ie. 20-50 KB approx)
-
- Mike Diack
-
- Michael.Diack@ukos.varian.com
-